import 'package:flutter/material.dart';

class RecordingTranslate extends StatefulWidget {
  @override
  _RecordingTranslateState createState() => _RecordingTranslateState();
}

class _RecordingTranslateState extends State<RecordingTranslate> {
  @override
  Widget build(BuildContext context) {
    return Expanded(
      child: ListView.builder(
        itemCount: 15,
        itemBuilder: (context, index) {
          return _displayList(index);
        },
      ),
    );
  }

  Widget _displayList(int index) {
    return Container(
      padding: EdgeInsets.only(bottom: 2.0, left: 2.0, right: 2.0),
      child: Card(
        margin: EdgeInsets.only(
          left: 8.0,
          right: 8.0,
        ),
        // shape:RoundedRectangleBorder(
        //   borderRadius: BorderRadius.all(Radius.circular(0.0)
        //   )
      ),
      // child: Container(
      //   padding: EdgeInsets.only(
      //     left: 16.0,
      //     top: 16.0,
      //     // bottom: 16.0
      //   ),
      //   height: 80.0,
      //   child: Row(
      //     children: <Widget>[Text('你好')],
      //   ),
      // ),
    );
  }
}
